#pragma once
#include "mprpcconfig.h"
#include <muduo/net/TcpServer.h>
#include <muduo/net/EventLoop.h>
#include <muduo/net/InetAddress.h>
#include "mprpccontroller.h"
#include "rpcprovider.h"
#include "logger.h"

class MrpcApplication
{
public:
    static MrpcApplication& getInstance();
    static void Init(int argc,char** argv);
    MprpcConfig& getConfig()
    {
        return m_config;
    }
private:
    static MprpcConfig m_config;
    
    MrpcApplication(){}
    MrpcApplication(const MrpcApplication&)=delete;
    MrpcApplication(MrpcApplication&&)=delete;
};